package memorphic.samplr.controllers
{
	import com.adobe.webapis.flickr.PagedPhotoList;
	
	import memorphic.samplr.ISamplrAppProps;
	import memorphic.samplr.SamplrStateManager;
	import memorphic.samplr.models.Gallery;
	import memorphic.samplr.models.PhotoSearchResults;
	
	import mx.collections.ArrayCollection;
	
	public class AppInit
	{
		
		
		public static function initSamplrAppProps(rootView:ISamplrAppProps):void
		{
			rootView.stateManager = new SamplrStateManager();
			
			rootView.galleries = new ArrayCollection();
			rootView.recentPhotos = new PagedPhotoList();
			rootView.searchResults = new PhotoSearchResults();
			rootView.selectedPhotos = new ArrayCollection();

			rootView.galleryController = new GalleryController(rootView);
		}

	}
}